"""
给定一个字符串:"itheima itcast boxuegu
统计字符串内有多少个"it"字符
将字符串内的空格,全部替换为字符:"｜"
并按照""进行字符串分割,得到列表

"""
str = "itheima itcast boxuegu"
print(str.count("it"))
new_str1 = str.replace(" ","｜")
new_str2 = new_str1.split("｜")
print(new_str2)

